﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Gerador
{
    public class XPathsElement : BaseConfigurationElement
    {
        [ConfigurationProperty("value", IsRequired = true)]
        public string Value
        {
            get
            {
                return (String)this["value"];
            }
            set
            {
                this["value"] = value;
            }
        }

        [ConfigurationProperty("isEndpoint", IsRequired = false)]
        public bool IsEndpoint
        {
            get
            {
                return (bool)this["isEndpoint"];
            }
            set
            {
                this["isEndpoint"] = value;
            }
        }

        [ConfigurationProperty("environments", IsRequired = true)]
        [ConfigurationCollection(typeof(EnvironmentElement), AddItemName = "add")]
        public ConfigurationCollection<EnvironmentElement> Environments
        {
            get
            {
                return (ConfigurationCollection<EnvironmentElement>)this["environments"];
            }
        }
    }
}
